package day240131;

public class Phone {
    // state
    String brand;
    String name;

    public Phone(String brand, String name){
        this.brand = brand;
        this.name = name;
    }
    // behavior
    void call(String phoneNumber) {
        System.out.println("正在用[" + this.name + "]打电话给：" + phoneNumber);
    }
    void msg(String phoneNUmber,String text){
        System.out.println("正在用[" + this.name + "]发信息给：" + phoneNUmber + "，内容是：" + text);
    }
}
